Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unzip-response

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unzip-response

Unzip a HTTP response if needed

  • 1.0.2
  • 1.x-branch
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is unzip-response?

The unzip-response npm package is used to decompress HTTP responses that have been compressed using gzip, deflate, or Brotli. It is particularly useful when working with HTTP clients that do not automatically handle decompression of response bodies.

What are unzip-response's main functionalities?

Decompress HTTP Response

This feature allows you to decompress an HTTP response that has been compressed using gzip, deflate, or Brotli. The code sample demonstrates how to use the unzip-response package to handle a compressed HTTP response and log the decompressed data to the console.

const http = require('http');
const unzipResponse = require('unzip-response');

http.get('http://example.com', response => {
  response = unzipResponse(response);
  response.on('data', chunk => {
    console.log(chunk.toString());
  });
});

Other packages similar to unzip-response

Keywords

FAQs

Package last updated on 01 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc